'''
列表：
'''
list1 = [1, 2, 3, 6, 'zhangs', [2, 6], True, {'name': 'xiaoming', 'age': 20}]
print(list1)

# 查
print(list1)
list2 = ['jack', '小明', '李明', '阿黄', '小猫']
print(list2[:3])
print(list2[3:0:-1])
print(id(list2))
print(id(list2[:]))

for index in range(len(list2)):
    print(list2[index])
for index in range(-1, -len(list2) - 1, -1):
    print(list2[index])
